# 比较运算符的结果是布尔类型

a,b = 10,20
print('a == b吗？', a == b)
print('a != b吗？', a != b)
print('a < b吗？', a < b)
print('a <= b吗？', a <= b)
print('a > b吗？', a >= b)
'''
    a == b 比较的是a和b的值；
    若要比较a和b的id要用 is 或 is not 比较运算符
'''
print('a和b的id相等吗？',a is b)
c = d = 22
print('c和d的id相等吗？',c is d)
#   对于列表不可以从value来判断id是否相等
lst1 = [11,22,33]
lst2 = [11,22,33]
print('lst1 == lst2吗？', lst1 == lst2)
print('id:lst1 == lst2吗？', lst1 is lst2)
print('lst1 id:',id(lst1))
print('lst2 id:',id(lst2))
